package _0219_._04_example.model;


/**
 * 商品类
 */
public class Product {

    private int id;                     // 商品id
    private String productName;         // 商品名称

    private double price;               // 商品价格
    private String describe;            // 商品描述

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Product() {
    }

    public Product(int id, String productName, double price, String describe) {
        this.id = id;
        this.productName = productName;
        this.price = price;
        this.describe = describe;
    }

    public void print(){
        System.out.println("id:" + this.id + ", name:" + this.productName + ",price:" + this.price + ", describe:" + this.describe);
    }
}
